﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoPartsSearch.Domain.Common
{
    public static class MessageHelpers
    {
        public static string GetRecipientsString(IEnumerable<string> emails)
        {
            if (!emails.Any())
            {
                return "contacts@vincod.md";
            }
            return emails.Aggregate((current, next) => current + "," + next);
        }
    }
}
